{"ast":null,"code":"import _regeneratorRuntime from\"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js\";import _asyncToGenerator from\"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";import _classCallCheck from\"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/classCallCheck.js\";import _createClass from\"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/createClass.js\";import apiClient from\"../http\";import{deleteContent as _deleteContent}from\"../routes\";var ContentService=/*#__PURE__*/function(){function ContentService(){_classCallCheck(this,ContentService);}_createClass(ContentService,null,[{key:\"deleteContent\",value:function(){var _deleteContent2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data){return _regeneratorRuntime().wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:return _context.abrupt(\"return\",apiClient.delete(_deleteContent(data.id||'0')));case 1:case\"end\":return _context.stop();}}},_callee);}));function deleteContent(_x){return _deleteContent2.apply(this,arguments);}return deleteContent;}()}]);return ContentService;}();export{ContentService as default};","map":{"version":3,"names":["apiClient","deleteContent","ContentService","data","delete","id"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/src/services/ContentService.ts"],"sourcesContent":["import apiClient from \"../http\";\nimport {AxiosResponse} from 'axios';\nimport {deleteContent} from \"../routes\"\nimport {ContentListItem} from \"../models/response/ContentListItem\";\nimport {DeleteContentResponse} from \"../models/response/Other/DeleteContentResponse\";\n\nexport default class ContentService {\n\n    public static async deleteContent(data: ContentListItem): Promise<AxiosResponse<DeleteContentResponse>> {\n        return apiClient.delete<DeleteContentResponse>(deleteContent(data.id || '0'));\n    }\n}"],"mappings":"skBAAA,MAAOA,UAAS,KAAM,SAAS,CAE/B,OAAQC,aAAa,GAAbA,eAAa,KAAO,WAAW,IAIlBC,eAAc,+OAE/B,iBAAkCC,IAAqB,oJAC5CH,SAAS,CAACI,MAAM,CAAwBH,cAAa,CAACE,IAAI,CAACE,EAAE,EAAI,GAAG,CAAC,CAAC,wDAChF,yIAJgBH,cAAc"},"metadata":{},"sourceType":"module"}